package com.guodu.vo;


import java.text.DecimalFormat;

import com.guodu.entity.MaterialChuku;

public class MaterialChukuVo {
	
	
	private static final long serialVersionUID = 1L;

	private MaterialChuku materialChuku;
	
	private String unitsName;
	
	private String funitsName;
	
	private Long funitsId;
	
	private Long unitsId;
	
	private String industry;
	
	private String userName;
	
	private String chukuCount;
	
	private String price;
	
	private String money;

	
	public MaterialChukuVo(MaterialChuku materialChuku){
		DecimalFormat df = new DecimalFormat("##,###.##");
		if(materialChuku.getChukuCount()!=null)
		this.chukuCount = df.format(materialChuku.getChukuCount());
		if(materialChuku.getPrice()!=null)
		this.price = df.format(materialChuku.getPrice());
		if(materialChuku.getMoney()!=null)
		this.money = df.format(materialChuku.getMoney());
		this.materialChuku = materialChuku;
	}
	
	public String getUnitsName() {
		return unitsName;
	}

	public void setUnitsName(String unitsName) {
		this.unitsName = unitsName;
	}
	
	

	public Long getFunitsId() {
		return funitsId;
	}

	public void setFunitsId(Long funitsId) {
		this.funitsId = funitsId;
	}

	public Long getUnitsId() {
		return unitsId;
	}

	public void setUnitsId(Long unitsId) {
		this.unitsId = unitsId;
	}

	public MaterialChuku getMaterialChuku() {
		return materialChuku;
	}

	public void setMaterialChuku(MaterialChuku materialChuku) {
		this.materialChuku = materialChuku;
	}

	public String getFunitsName() {
		return funitsName;
	}

	public void setFunitsName(String funitsName) {
		this.funitsName = funitsName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getIndustry() {
		return industry;
	}

	public void setIndustry(String industry) {
		this.industry = industry;
	}

	public String getChukuCount() {
		return chukuCount;
	}

	public void setChukuCount(String chukuCount) {
		this.chukuCount = chukuCount;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}
	
	
	
	
	
}
